//
//  ParentController.h
//  DZbbs2
//
//  Created by zengyuan on 7/31/13.
//  Copyright (c) 2013 zengyuan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Config.h"
#import "FullLoadingView.h"

extern NSString* g_sessionId;


@interface ParentController : UIViewController
{
    ErrorHandle *errorhandle;
    Reachability * networkReach;
    
    dispatch_queue_t _serialQueue;
    FullLoadingView *fullloadingView;

}
@property(strong,nonatomic) UIButton *backBtnPar;
@property(strong,nonatomic) UIButton *rightBtnPar;
@property(strong,nonatomic) UILabel *titleLabel;
@property BOOL firstControllerInTabController;

-(void)setNavbarItem;
//-(void)goback;

-(BOOL)networkAvailble;

-(void)addReachabilityChangedNotifi;
-(void)removeReachabilityChangedNotifi;

-(void)navLeftAction;
-(void)navRightAction;

-(void)destoryMemBeforePop;
-(void)addTwoLinesFor:(UIView *)view;
-(void)hideNavBottomBlackLine;


/*
   @brief 全屏加载视图
    note: 尺寸坐标等根据情况重设
 */
-(void)addFullloadView;
-(void)dismissFullloadingView;

-(void)removeNavPanGesture;
-(void)addNavPanGesture;


-(void)setBtnGreenBackgroundImage:(UIButton *)btn;
-(void)setBtnDisabledDarkBackgroundImage:(UIButton *)btn;

-(void)showErrorTipMsgInViewController:(NSString *)err;

+(id)fromSB:(NSString *)sbid;
@end
